package com.example.fresheveryday.service.Impl;

import com.example.fresheveryday.po.Role;
import com.example.fresheveryday.mapper.RoleMapper;
import com.example.fresheveryday.service.RoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ll
 * @since 2023-07-05
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {
    @Autowired
    RoleMapper roleMapper;
    @Override
    public Set<String> queryRoleNameByUserId(String userId) {
        return roleMapper.queryRoleNameByUserId(userId);
    }
}
